<div id="content">
    <div class="row s_page_title">
        <sa-big-breadcrumbs [items]="['项目管理','流向平台链接']" icon="fa fa-smile-o" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
    </div>
    <sa-widgets-grid>
        <div class="s_table">
            <div sa-widget [editbutton]="false" color="darken" class="clearfix">
                <header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
                    <h2>流向平台链接</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <div class="page-header clearfix s_table_opreation">
                            <div class="left page-header-btn">
								<div class="top_module top_module_box">
									<span class="top_module_label module_text">平台名称</span>
									<select name="" class="top_module_select" [(ngModel)]="platformName" (change)='table_search()'>
										<option value="">全部</option>
										<option *ngFor="let item of platformNameList" [value]='item'>{{item}}</option>
									</select>
								</div>

								<div class="top_module top_module_box">
									<span class="top_module_label module_text">负责人</span>
									<select name="" class="top_module_select" [(ngModel)]="userName" (change)='table_search()'>
										<option value="">全部</option>
										<option *ngFor="let item of userNameList" [value]='item'>{{item}}</option>
									</select>
								</div>

                                <button type="button" class="btn btn-primary" (click)="tableSearch()">查询</button>
                                <button type="button" class="btn btn-primary" (click)="showAddLimitModal(transportPlatformLinkModal)">添加</button>
                            </div>
                            <div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="tableSearch()" class="search-input" placeholder="平台名称/负责人">
								<span class="top-search-box">
									<button class="top-search-btn" type="button" (click)="tableSearch()"> <i class="fa fa-search"></i></button>
								</span>
							</div>
                        </div>
                        <div class="table_scroll">
                            <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                <thead>
                                    <tr>
                                        <th>平台名称</th>
                                        <th>平台链接</th>
                                        <th>负责人</th>
                                        <th>更新时间</th>
                                        <th >操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of tableData" [ngClass]='{selected: activeSelected === row.id }'>
                                        <td>{{row.projectName}}</td>
                                        <td><a href="{{row.link}}" target="_blank" style="color: #1A6DDD;">{{row.link}}</a></td>
                                        <td>{{row.principal}}</td>
                                        <td>{{row.updateTime}}</td>
                                        <td>
                                            <button type="button" (click)="editRow(row,transportPlatformLinkModal)">编辑</button>
                                            <button type="button" (click)="del_domCode(row)">删除</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="table-fix clearfix">
                            <paginator [totalRecords]="totalCounts" [rows]="pageSize" [currentPage]="curPage - 1" (onPageChange)="paginate($event)">
                            </paginator>
                            <button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </sa-widgets-grid>
</div>

<!-- 新增项目管理 -->
<section bsModal #transportPlatformLinkModal="bs-modal" class="modal fade addRenewal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="closetransportPlatformLinkModal(transportPlatformLinkModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">{{formType=="add"?'新增':'编辑'}}流向平台链接</h4>
            </div>
            <div class="modal-body">
                <form id="transportPlatformLink" class="form-horizontal" role="form" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">
                    <div class="row form-horizontal">
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">平台名称<sup>*</sup></label>
                            <div class="col-xs-9">
                                <input class="form-control" type="text"  [(ngModel)]='transportPlatformLinkObj.projectName' name='projectName' placeholder="请输入平台名称"/>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">平台链接<sup>*</sup></label>
                            <div class="col-xs-9">
                                <input class="form-control" type="text"  [(ngModel)]='transportPlatformLinkObj.link' name='link' placeholder="请输入平台链接"/>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label">负责人</label>
                            <div class="col-xs-9">
                                <input class="form-control" type="text"  [(ngModel)]='transportPlatformLinkObj.principal' name='principal' placeholder="请输入负责人"/>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="closetransportPlatformLinkModal(transportPlatformLinkModal)">取消</button>
                <button type="button" class="btn btn-primary" (click)="submitModal(transportPlatformLinkModal)">提交</button>
            </div>
        </div>
    </div>
</section>
<!-- 新增项目管理 结束 -->